package 第七周.homework;
//FictionTest.java
//Demonstrates the use of an inherited method.
public class FictionTest {
    //Instatiates a derived class and invokes its inherited and
    //local methods.
    public static void main(String []args)
    {
        Fiction mysteryload = new Fiction();
        System.out.println("Number of pages: " + mysteryload.getPages());
        System.out.println("Number of defintions: " + mysteryload.getDefinitions());
        System.out.println("Number of illustrations: " + mysteryload.getIllustrations());
        System.out.println("Definitions per pages: " + mysteryload.computeRatio());
        System.out.println("illustrations per pages: " + mysteryload.pictureaverage());
    }
}
